
package jpoco.client;

public class Photo
	implements java.io.Serializable
{
	private String value;
	private String type;
	private boolean primary = false;
	private byte[] data;
	
	public Photo()
	{
		super();
	}

	public String getValue()
	{
		return value;
	}

	public void setValue(String v)
	{
		this.value = v;
	}

	public String getType()
	{
		return type;
	}

	public void setType(String t)
	{
		this.type = t;
	}
	
	public boolean isThumbnail()
	{
		return "thumbnail".equalsIgnoreCase(this.getType());
	}
	
	public String toString()
	{
		return this.getValue();
	}

	public boolean isPrimary()
	{
		return primary;
	}

	public void setPrimary(boolean b)
	{
		this.primary = b;
	}

	public byte[] getData()
	{
		return data;
	}

	public void setData(byte[] d)
	{
		this.data = d;
	}

	
}
